package com.ktwlsoft.archivemanage.domain.dao.repository.businessInspect;

import java.util.List;

import com.ktwlsoft.archivemanage.domain.dao.entity.businessInspect.InspectSubject;
import org.apache.ibatis.annotations.Mapper;

/**
 * inspect_subject--业务检查题目
 *
 * @author zhuhe on 2019-11-12 15:00:45
 * @version 1.0
 */
@Mapper
public interface IInspectSubjectMapper {
	
	/**
	 * 查询列表 on 2019-11-12 15:00:45
	 * @param inspectSubject inspectSubject
	 * @return List<InspectSubject>
	 */
	List<InspectSubject> findList(InspectSubject inspectSubject);
	
	
	/**
	 * 根据id查询信息 on 2019-11-12 15:00:45
	 * @param id id
	 * @return InspectSubject
	 */
	InspectSubject getById(Long id);

	/**
	  * 根据业务检查id查询信息 on 2019/11/13 12:00
	  *
	  * @param inspectId inspectId
	  * @return List<InspectSubject>
	  */
	List<InspectSubject> getByInspectId(Long inspectId);
	
	/**
	 * 根据id删除信息 on 2019-11-12 15:00:45
	 * @param id id
	 * @return int
	 */
	int deleteById(Long id);

	/**
	 * 根据检查id删除信息 on 2019-11-12 15:00:45
	 * @param id id
	 * @return int
	 */
	int deleteByInspect(Long id);

	/**
	 * 根据id集合批量删除信息 on 2019-11-12 15:00:45
	 * @param ids ids
	 * @return int
	 */
	int deleteByIds(List<Long> ids);

	/**
	 * 插入 on 2019-11-12 15:00:45
	 * @param inspectSubject inspectSubject
	 * @return int
	 */
    int insert(InspectSubject inspectSubject);

	/**
	 * 批量插入 on 2019-04-23 10:57:02
	 * @param list list
	 * @return int
	 */
	int manyInsert(List<InspectSubject> list);

	/**
	 * 更新 on 2019-11-12 15:00:45
	 * @param inspectSubject inspectSubject
	 * @return int
	 */
    int update(InspectSubject inspectSubject);
}
